FileType

Defines the output file type used for the config.

Author

fzzyhmstrs

Since

0.6.7

Entries

Link copied to clipboard

TOML output format. The standard output.

Link copied to clipboard

JSON output format. Uses GSON and codecs to parse the json to/from the TOML used internally.

Link copied to clipboard

JSON5 output format. Uses Jankson and codecs to parse the json5 to/from the TOML used internally. Comments will be automatically carried over from any @Comment or @TomlComment annotations applied.

Link copied to clipboard

JSONC output format. Uses Jankson and codecs to parse the jsonc to/from the TOML used internally. Comments will be automatically carried over from any @Comment or @TomlComment annotations applied.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun decode(input: String): ValidationResult<TomlElement>
Link copied to clipboard
fun encode(input: TomlElement): ValidationResult<String>
Link copied to clipboard
fun suffix(): String
Link copied to clipboard
fun valueOf(value: String): FileType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.